package com.abel.bigwater.dataserver.model.kming

import io.netty.buffer.ByteBuf

class TermShutdownData : TermData(KmingDataType.TermShutdownComm, 1) {
    override fun bufLength() = 1

    override fun parseBuf(buf: ByteBuf) = type == KmingDataType.findByCode(buf.readUnsignedByte())

    override fun pack(buf: ByteBuf) {
        buf.writeByte(type.code.toInt())
    }
}